package com.pxxy.mapper;

import com.pxxy.entity.Teacher;import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.List;

/******
 *
 */
public interface TeacherMapper {

   List<Teacher> findAll();

    /****
     * 级联加载出当前老师的上课记录
     * @param id
     * @return
     */
   Teacher findById(Serializable id);

   Teacher findById2(Serializable id);

   int update(Teacher teacher);

   int delete(Serializable id);

   int save(Teacher teacher);

   List<Teacher> findByContaining(@Param("name")String name, @Param("mobilePhone")String mobilePhone);
}
